/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.yaba.dbs.core;

import java.io.Serializable;

/**
 *
 * @author emanuellfaustino
 */
public class Chunk implements Serializable {
    private int _current = -1;
    private int _total = -1;
    private byte[] _bytes;
    private String _userId;
    
    public Chunk(String userId, int current, int total, byte[] bytes) {
        _bytes = bytes;
        _current = current;
        _total = total;
        _userId = userId;
    }
    
    public int getCurrentNumber() {
        return _current;
    }
    
    public int getTotal() {
        return _total;
    }
    
    public byte[] getBytes() {
        return _bytes;
    }
    
    public String getUserId() {
        return _userId;
    }
    
}
